package polyReview;

public class Master {
   private String name;
    public Master(String name){
        setName(name);
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    //输出主人喂食
    public void Feed(Master master, Animal animal, Food food){
        System.out.println("主人" + master.name + "给" + animal.getName() + "喂" + food.getName());
    }
}
